﻿namespace MySql.Simple.Mapper.Structures
{
    /// <summary>
    /// Represents a foreign key in the database
    /// </summary>
    public class ForeignKey
    {
        /// <summary>
        /// Gets or sets the source column.
        /// </summary>
        /// <value>The source column.</value>
        public string SourceColumn { get; set; }

        /// <summary>
        /// Gets or sets the source table.
        /// </summary>
        /// <value>The source table.</value>
        public string SourceTable { get; set; }

        /// <summary>
        /// Gets or sets the destination column.
        /// </summary>
        /// <value>The destination column.</value>
        public string DestinationColumn { get; set; }

        /// <summary>
        /// Gets or sets the destination table.
        /// </summary>
        /// <value>The destination table.</value>
        public string DestinationTable { get; set; }
    }
}
